package com.cocolover2.andbase.contants;

import android.Manifest;
import android.annotation.TargetApi;

/**
 * 自定义的权限授权码
 *
 * @see com.cocolover2.andbase.annotations.PermissionCode
 * Created by liubo on 7/26/16.
 */
@TargetApi(23)
public final class PermissionCodes {

    public static final int CODE_CAMERA = 0;//相机
    public static final int CODE_STORAGE = 1;//sd卡
    public static final int CODE_CONTACTS = 2;//通讯录
    public static final int CODE_PHONE = 3;//电话权限
    public static final int CODE_CALENDAR = 4;//日历
    public static final int CODE_SENSORS = 5;//传感器
    public static final int CODE_LOCATION = 6;//定位权限
    public static final int CODE_RECORD_AUDIO = 7;//录音
    public static final int CODE_SMS = 8;//短信发送


    public static final String[] Permissions = {
            Manifest.permission.CAMERA,
            Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.READ_CONTACTS,
            Manifest.permission.CALL_PHONE,
            Manifest.permission.READ_CALENDAR,
            Manifest.permission.BODY_SENSORS,
            Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.RECORD_AUDIO,
            Manifest.permission.SEND_SMS

    };

}
